import request from '@/utils/request'

/**
 * 获取用户未读消息数量
 * @param {number} userId - 用户ID
 * @returns {Promise<number>} 未读消息数量
 */
export function getUnreadMessageCount(userId) {
  return request.get(`/chat/unread/count?userId=${userId}`)
} 